home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000023_jp107@amtp.cam.ac.uk_Thu Nov 3 22:40:41 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  2KB

  1. Received: from inn.amtp.cam.ac.uk by cs.umb.edu with SMTP id AA25992
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 3 Nov 1994 17:40:43 -0500
  3. Return-Path: <J.S.Peatfield@damtp.cambridge.ac.uk>
  4. Received: from asp.amtp.cam.ac.uk [131.111.16.26] (TAP id = jp107) 
  5.     by inn.amtp.cam.ac.uk with smtp 
  6.     (Smail-3.1.28.1 #6) id m0r3Apm-0001HoC; Thu, 3 Nov 94 22:40 GMT
  7. Received: by asp.amtp.cam.ac.uk (1.37.109.8/DAMTP 2.1-Client (asp.amtp.cam.ac.uk MX-hub grey.amtp.cam.ac.uk))
  8.     id AA12543; Thu, 3 Nov 1994 22:40:41 GMT
  9. Date: Thu, 3 Nov 1994 22:40:41 GMT
  10. Message-Id: <9411032240.AA12543%asp.amtp.cam.ac.uk@damtp.cambridge.ac.uk>
  11. To: tex-k@cs.umb.edu
  12. Subject: Minor patch to web2c/web2c/web2c.h
  13. From: Jon Peatfield <J.S.Peatfield@amtp.cam.ac.uk>
  14.  
  15. I'm sure someone else must have posted this already but I managed to
  16. miss it.  Basically the declaration of alloca in web2c.h is not
  17. correct if alloca is a macro (other than a simple renaming macro like
  18. on SunOS), the current code falls over under Linux (that I know of)
  19. and this patch shouldn't harm anyone else (I hope.)
  20.  
  21. --cut-here--
  22. *** web2c/web2c/web2c.h.orig    Fri May 14 19:20:49 1993
  23. --- web2c/web2c/web2c.h    Thu Nov  3 14:35:55 1994
  24. ***************
  25. *** 56,59 ****
  26. --- 56,62 ----
  27.   extern void find_next_temp(), normal(), new_line(), indent_line(), my_output();
  28.   extern void semicolon(), remove_locals(), mark(), initialize();
  29.   extern int add_to_table(), search_table(), yyerror(), yylex(), yyparse();
  30. + #ifndef alloca
  31. + /* Linux at least has alloca as a macro not a function */
  32.   extern void *alloca();
  33. + #endif  /* alloca */
  34. --cut-here--
  35.  
  36.   -- Jon
  37.  
  38. Jon Peatfield, Computer Officer, the DAMTP, University of Cambridge
  39. Telephone: (+44 223) 3-37852     Mail: J.S.Peatfield@damtp.cam.ac.uk
  40.  
  41.      Friends don't let friends use X.25.     X.25: Just say NO.
  42.